﻿@model KRM.Core.tblStore
<script type="text/javascript">
    $(document).ready(function () {
        $("#fr-storedetail").submit(function () {
            App.blockUI($('body'), false);
            $.ajax({
                type: 'POST',
                url: '/products/SaveStoreDetail',
                data: $(this).serialize(),
                success: function (data) {
                    alert(data.message);
                    App.unblockUI($('body'));
                },
                error: function () {
                    App.unblockUI($('body'));
                }
            });
            return false;
        });
    });

</script>
<form action="/Products/SaveStoreDetail" class="margin0" id="fr-storedetail" method="post">
    <div class="row-fluid">
        <div class="span12 text-center">
            <input type="hidden" name="StoreID" value="@Model.StoreID" />
            <h4>@Model.StoreName</h4>
        </div>
    </div>
    <div class=" fieldset">
        <div class="legend">
            <span>Homepage Meta Content </span>
        </div>
        <div class="row-fluid">
            <div class="span3">HomePage Meta Title</div>
            <div class="span9">
                <textarea name="StoreBrowserTitle" style="height: 45px" class="input-block-level">@Model.StoreBrowserTitle</textarea>
            </div>
        </div>
        <div class="row-fluid">
            <div class="span3">Homepage Meta Description</div>
            <div class="span9">
                <textarea name="StoreMetaDescription" style="height: 45px" class="input-block-level">@Model.StoreMetaDescription</textarea>
            </div>
        </div>
        <div class="row-fluid">
            <div class="span3">Homepage Meta Keywords</div>
            <div class="span9">
                <textarea name="StoreMetaKeywords" style="height: 45px" class="input-block-level">@Model.StoreMetaKeywords</textarea>
            </div>
        </div>
    </div>
    <div class=" fieldset">
        <div class="legend">
            <span>Contact information</span>
        </div>
        <div class=" fieldset">
            <div class="legend">
                <span>Sales </span>
            </div>
            <div class="row-fluid">
                <div class="span2">Sales Email</div>
                <div class="span4">
                    <input type="text" name="StoreSalesEmail" value="@Model.StoreSalesEmail" class="input-block-level" />
                </div>
                <div class="span2">Sales Phone</div>
                <div class="span4">
                    <input type="text" name="StoreTelephone" value="@Model.StoreTelephone" class="input-block-level" />
                </div>
            </div>
        </div>
        <div class=" fieldset">
            <div class="legend">
                <span>Support  </span>
            </div>
            <div class="row-fluid">
                <div class="span2">Support Email</div>
                <div class="span4">
                    <input type="text" name="StoreSupportEmail" value="@Model.StoreSupportEmail" class="input-block-level" />
                </div>
                <div class="span2">Support Phone</div>
                <div class="span4">
                    <input type="text" name="ProductSupportTel" value="@Model.ProductSupportTel" class="input-block-level" />

                </div>
            </div>
        </div>
        <div class=" fieldset">
            <div class="legend">
                <span>Pre-Delivery</span>
            </div>
            <div class="row-fluid">
                <div class="span2">Pre-Delivery Email</div>
                <div class="span4">
                    <input type="text" name="PreDeliveryEmail" value="@Model.PreDeliveryEmail" class="input-block-level" />
                </div>
                <div class="span2">Pre-Delivery Phone</div>
                <div class="span4">
                    <input type="text" name="PreDeliveryTel" value="@Model.PreDeliveryTel" class="input-block-level" />
                </div>
            </div>
        </div>
        <div class=" fieldset">
            <div class="legend">
                <span>Homepage Description</span>
            </div>
            <div class="row-fluid">
                <div class="span3">Description</div>
                <div class="span9">
                    <textarea class="input-block-level" style="height: 120px" name="HomePageDescription">@Model.HomePageDescription</textarea>
                </div>
            </div>
        </div>
        <div class="row-fluid ">
            <div class="span12 text-right">
                <input type="submit" class="btn btn-success" value="Save Changes" />
            </div>
        </div>
    </div>

</form>
